package com.project.source;

import java.util.ArrayList;
import java.util.Random;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class RandomNumbersActivity extends Activity {
    /** Called when the activity is first created. */
	 Utility u;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        TextView tv = (TextView) findViewById(R.id.numbers );
        u=new Utility();
        ArrayList<Integer> numbers= u.GenerateNumbers(6,1,49);
        String numberText="";
        for (int j = 0; j<numbers.size(); j++)
        {
        	if (numberText.equals(""))
        	{
        		numberText = String.valueOf(numbers.get(j));
        		
        	}
        	else
        	{
        		numberText =numberText+","+ String.valueOf(numbers.get(j));
        	}
        	
        	
        }
        tv.setText(numberText);
    }
    
    public void GenerateThing(View v)
    {
    	
    	
    }
    
   
}